const GET_SOURCE = 'GET_SOURCE'

const state = {
    source: null,
}

const getters = {
    source: state => state.source,
}

const actions = {
    storeSource({commit}, source) {
        commit(GET_SOURCE, source)
    }
}

const mutations = {
    [GET_SOURCE](state, source) {
        state.source = source
    }
}

export default {
    state,
    getters,
    actions,
    mutations
}
